package com.wfy.orchestra.thread

import android.os.Handler
import android.os.Looper
import java.util.concurrent.Executor

/**
 * @author : wangfengyuan
 * e-mail  : 446950883@qq.com
 * time    : 2025/3/20
 * desc    :
 * version : 1.0
 */
class MainThreadExecutor: ITaskExecutor {
    private val mainExecutor: Executor = Executor { runnable: Runnable -> Handler(Looper.getMainLooper()).post(runnable) }
    override fun execute(runnable: Runnable) {
        mainExecutor.execute(runnable)
    }

    override fun shutdown() {

    }

}